package com.boc.startup;

import android.support.v4.view.ViewPager;

import com.alibaba.android.arouter.facade.annotation.Route;

import java.util.ArrayList;
import java.util.List;

import butterknife.BindView;
import demo.bocweb.com.sdk.base.activity.BaseActivity;
import demo.bocweb.com.sdk.config.ARoutConfig;
import demo.bocweb.com.sdk.util.StatusBarUtils;

/**
 * 引导页
 * Created by zhelun on 2018/2/1.
 */
@Route(path = ARoutConfig.guidePath)
public class GuideActivity extends BaseActivity {
    @BindView(R2.id.view_pager)
    ViewPager viewPager;

    @Override
    protected int getLayoutId() {
        return R.layout.activity_guide;
    }

    @Override
    protected void initData() {
        super.initData();
        StatusBarUtils.with(this).init();
        List<Integer> images = new ArrayList<>();
        images.add(R.mipmap.ic_launcher);
        images.add(R.mipmap.ic_launcher);
        images.add(R.mipmap.ic_launcher);
        GuildPagerAdapter adapter = new GuildPagerAdapter(images, this, this);
        viewPager.setAdapter(adapter);
    }
}
